package com.example.kotlinstudy.bean

import org.junit.Test

class TestBean {
    @Test
    fun test1() {

        var player = Player()

        println(player.name)
        player.name = " rose "
        println(player.name)


        player.saySomething()
    }

    @Test
    fun test2() {
        var classDefinition = ClassDefinition("jack", 20, true) //通过构造函数赋值
//        classDefinition.name="Rose" //私有后不可调用
    }

}